var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var Professor = new Schema({
    nome: String,
    email: {type: String, index: {unique: true, dropDups: true}},
    username: {type: String, index: {unique: true, dropDups: true}},
    password: String,
    roles: [String],
    matricula: String,
    preferidas: [Disciplina],
    disciplinas: [Disciplina],
    projetos: [Projeto]
});

mongoose.model('Professor', Professor);

exports.Professor = mongoose.model('Professor');

